<?php
	namespace Admin\Model;
	use Think\Model;
	class UserModel extends Model{
		protected $_validate = array(
			array('yjl_username','require','用户名不能为空!',1)
		);
		protected $_auto = array(
			array('yjl_createtime','getdate',self::MODEL_INSERT,'callback'),
			array('yjl_pass','md5',self::MODEL_INSERT,'function')
		);
		
		function getdate(){
			return date('Y-m-d');
		}
	}
?>


